/* 顶部导航样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 80px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h2 {
    color: #333;
    font-size: 20px;
    font-weight: normal;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 50px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
}

/* Update the active and hover states */
nav a:hover,
nav a.active,
nav a[href="./pages/weigui.html"] {
    color: #42d7be;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #42d7be;
    transition: width 0.3s ease;
}

/* Update the active underline states */
nav a.active::after,
nav a[href="./pages/weigui.html"]::after {
    width: 100%;
}

nav a:hover::after {
    width: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.user-info img {
    width: 40px;
    height: 38px;
    border-radius: 50%;
}

.avatar {
    font-size: 16px;
}

/* 添加新样式 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.breadcrumb {
    margin-bottom: 0;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.header-actions {
    margin-bottom: 0;
}

.complaint-btn {
    background-color: #42d7be;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.complaint-table {
    width: 100%;
    border-collapse: collapse;
}

.complaint-table th,
.complaint-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.complaint-table th {
    background-color: #f8f8f8;
    font-weight: normal;
}

.status {
    color: #ff9900;
}

.status.completed {
    color: #999;
}

.view-btn {
    color: #42d7be;
    text-decoration: none;
}

/* 表格隔行变色 */
.complaint-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* 修改 breadcrumb 和 header-actions 的布局 */
main > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}